import HttpRequest from '@/utils/uniRequest'; // 假设你把request.js放在了common目录下  

// 微信登录
export const login = (data:any) =>
HttpRequest<any>('/adminapi/wxLogin', 'POST', data)

// 获取用户信息
export const getUserInfo = (data:any) =>
HttpRequest<any>('/adminapi/getUserInfo', 'POST', data)

// 更新用户信息
export const updateUserInfo = (data:any) =>
HttpRequest<any>('/adminapi/updateUserInfo', 'POST', data)

// 添加地址
export const addAddress = (data:any) =>
HttpRequest<any>('/adminapi/addAddress', 'POST', data)

// 查询用户地址
export const searchAddressList = (data:any) =>
HttpRequest<any>('/adminapi/searchAddressList', 'POST', data)

// 修改默认收货地址
export const updateDefaultAddress = (data:any) =>
HttpRequest<any>('/adminapi/updateDefaultAddress', 'POST', data)

// 获取商品列表
export const getProductList = (data:any) =>
HttpRequest<any>('/adminapi/getProductList', 'POST', data)

// 获取商品信息
export const getFindOneProduct = (data:any) =>
HttpRequest<any>('/adminapi/getFindOneProduct', 'POST', data)

// 收藏商品
export const collect = (data:any) =>
HttpRequest<any>('/adminapi/collect', 'POST', data)

